package com.handyshop.mall.auth.annotation;

import com.handyshop.mall.auth.config.jwt.JwtTokenConfig;
import com.handyshop.mall.auth.config.jwt.OAuth2JwtConfig;
import org.springframework.context.annotation.Import;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

import java.lang.annotation.*;

/**
 * 开启jwt token oauth2
 *
 * @author hs
 * @date 2020-12-03 11:29
 **/
@Documented
@Inherited
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@EnableAuthorizationServer
@Import({JwtTokenConfig.class, OAuth2JwtConfig.class})
public @interface EnableJwtOauth2 {
}
